<?php

$count=0;
$newArr = array();
$string = 'Weekend';
while(isset($string[$count]))
{
  $count++;
}
for ($i = $count-1; $i >= 0 ; $i--)
{
  echo $string[$i];
}
